
<div class="">
	<ul class="nav nav-tabs" data-role="listview" data-split-icon="gear" data-filter="true">
		
		<shiro:notAuthenticated>
			<g:each status="i" var="c" in="${['Home','Major','Department','Subject'] }">
				<li class="controller${params.controller == c ? " active" : ""}">
					<g:link controller="${c}" action="index">
						<g:message code="${c}.label" default="${c.capitalize()}"/>
					</g:link>
				</li>
			</g:each>
		</shiro:notAuthenticated>
		
		
		<shiro:hasRole name="ADMIN_ROLE">
			<g:each status="i" var="c" in="${['Home','Student','Professor','Major','Department','Subject','Course', 'Semester'] }">
				<li class="controller${params.controller == c ? " active" : ""}">
					<g:link controller="${c}" action="index">
						<g:message code="${c}.label" default="${c.capitalize()}"/>
					</g:link>
				</li>
			</g:each>
		</shiro:hasRole>
		
		<shiro:hasRole name="PROFESSOR_ROLE">
			<g:each status="i" var="c" in="${['Home','Professor','Major','Department','Subject','Course']}">
				<li class="controller${params.controller == c ? " active" : ""}">
					<g:link controller="${c}" action="index">
						<g:message code="${c}.label" default="${c.capitalize()}"/>
					</g:link>
				</li>
			</g:each>
		</shiro:hasRole>
		
		<shiro:hasRole name="STUDENT_ROLE">
			<g:each status="i" var="c" in="${['Home','Student','Major','Department','Subject','Course'] }">
				<li class="controller${params.controller == c ? " active" : ""}">
					<g:link controller="${c}" action="index">
						<g:message code="${c}.label" default="${c.capitalize()}"/>
					</g:link>
				</li>
			</g:each>
		</shiro:hasRole>
		
	</ul>
</div>
